/*package com.sl.au;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;

import com.sl.au.entity.StorageProperties; 
import com.sl.au.service.ActivitiService;
import com.sl.au.service.AttachmentService;

@SpringBootApplication
@EnableConfigurationProperties(StorageProperties.class)
public class CRMApplicationD extends SpringBootServletInitializer {
	private static Logger logger=LoggerFactory.getLogger(CRMApplicationD.class); 
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(CRMApplicationD.class);
	}

	public static void main(String[] args) {
		SpringApplication.run(CRMApplicationD.class, args);
	}
	
	*//**初始化
	 * @param storageService
	 * @return
	 *//*
	@Bean
	CommandLineRunner init(AttachmentService attachmentService,ActivitiService activitiService) {
		return (args) -> {
			//初始化文件存储目录
           // storageService.deleteAll();
			attachmentService.init();
       
		};
	}
	
}

*/